
//
// alert view
//
@interface UIAlertView(Additions)<UIAlertViewDelegate>

//
// dismiss callback
//
typedef void (^UIAlertViewDismissCallback)(int buttonIndex);

//
// cancel callback
//
typedef void (^UIAlertViewCancelCallback)();

//
// with title, message, cancel, other
//
+ (UIAlertView*)alertViewWithTitle:(NSString*)title message:(NSString*)message cancel:(NSString*)cancel;

//
// with title, message, cancel, other
//
+ (UIAlertView*)alertViewWithTitle:(NSString*)title message:(NSString*)message cancel:(NSString*)cancel others:(NSArray*)others onDismiss:(UIAlertViewDismissCallback)onDismiss onCancel:(UIAlertViewCancelCallback)onCancel;

@end
